package com.mc.lp.view.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.mc.lp.view.constants.IConstants;
/**	@author: deepak.verma
 * 	@description: class to act as controller for admin section pages.
 * */
@Controller
public class AdminViewController implements IConstants {
	
	@RequestMapping(value = PAGES.ADMIN_DASHBOARD, method = RequestMethod.GET)
	public ModelAndView adminPage() {
		ModelAndView model = new ModelAndView();
		model.addObject("title", "Spring Security Custom Login Form");
		model.addObject("message", "This is protected page!");
		model.setViewName(PAGES.ADMIN_DASHBOARD);
		return model;
	}
}
